#include "appengine.h"

AppEngine *AppEngine::m_instance = nullptr;
QMutex AppEngine::m_mutex;

AppEngine::AppEngine(QObject *parent)
    : QQmlApplicationEngine{parent}
{

}


AppEngine *AppEngine::getInstance()
{
    if (!m_instance) {
        QMutexLocker locker(&m_mutex);
        if (!m_instance) {
            m_instance = new AppEngine();
        }
    }
    return m_instance;
}



AppEngine::~AppEngine()
{

}

